package com.erhuogo.entity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品信息实体类
 * 
 * @author aibinxiao
 * @date 2016年10月24日 下午2:21:20
 */
public class CommodityInfo {
	private Integer id;// 商品信息ID
	private String name;// 商品名称
	private String detail;// 商品信息详情
	private String headimgUrl;// 商品主图url
	private String imgUrlList;// 商品细节图url集合，以,分隔
	private BigDecimal oriPrice;// 商品原价
	private BigDecimal transferPrice;// 商品转让价
	private Integer quality;// 商品成色(全新，九成新，八成新等等)
	private String location;// 商品所在地(由发布用户的省份和市区组成)
	private String contactWay;// 联系方式
	private Integer tradeWay;// 交易方式(0表示在线交易，1表示线下交易)
	private String issueTime;// 商品信息发布时间
	private String editTime;// 最后编辑时间
	private Integer commendNum;// 点赞数
	private Integer reportStatus;// 举报状态(0表示未被举报，1表示被举报)
	private Integer reportNum;// 被举报次数
	private Integer messagesNum;// 留言数
	private Integer memberId;// 发布者ID
	private Integer shieldStatus;// 屏蔽状态(0表示未被屏蔽，1表示被屏蔽)
	private Integer tradeStatus;// 交易状态
	private String oneCategoryName;// 商品所属一级分类名
	private String twoCategoryName;// 商品所属二级分类名
	private String threeCategoryName;// 商品所属三级分类名
	private Integer oneCategoryId;// 商品所属一级分类ID
	private Integer twoCategoryId;// 商品所属二级分类ID
	private Integer threeCategoryId;// 商品所属三级分类ID
	private Integer provinceId;// 商品所属省份ID
	private Integer cityId;// 商品所属城市ID
	private Integer schoolId;// 商品所属高校ID
	
	public CommodityInfo() {
		super();
	}
	
	public CommodityInfo(String name, String detail, String headimgUrl, String imgUrlList, BigDecimal oriPrice,
			BigDecimal transferPrice, Integer quality, String location, String contactWay, Integer tradeWay,
			Integer memberId, String oneCategoryName, String twoCategoryName, String threeCategoryName,
			Integer oneCategoryId, Integer twoCategoryId, Integer threeCategoryId, Integer provinceId, Integer cityId,
			Integer schoolId) {
		super();
		this.name = name;
		this.detail = detail;
		this.headimgUrl = headimgUrl;
		this.imgUrlList = imgUrlList;
		this.oriPrice = oriPrice;
		this.transferPrice = transferPrice;
		this.quality = quality;
		this.location = location;
		this.contactWay = contactWay;
		this.tradeWay = tradeWay;
		this.memberId = memberId;
		this.oneCategoryName = oneCategoryName;
		this.twoCategoryName = twoCategoryName;
		this.threeCategoryName = threeCategoryName;
		this.oneCategoryId = oneCategoryId;
		this.twoCategoryId = twoCategoryId;
		this.threeCategoryId = threeCategoryId;
		this.provinceId = provinceId;
		this.cityId = cityId;
		this.schoolId = schoolId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public String getHeadimgUrl() {
		return headimgUrl;
	}

	public void setHeadimgUrl(String headimgUrl) {
		this.headimgUrl = headimgUrl;
	}

	public String getImgUrlList() {
		return imgUrlList;
	}

	public void setImgUrlList(String imgUrlList) {
		this.imgUrlList = imgUrlList;
	}

	public BigDecimal getOriPrice() {
		return oriPrice;
	}

	public void setOriPrice(BigDecimal oriPrice) {
		this.oriPrice = oriPrice;
	}

	public BigDecimal getTransferPrice() {
		return transferPrice;
	}

	public void setTransferPrice(BigDecimal transferPrice) {
		this.transferPrice = transferPrice;
	}

	public Integer getQuality() {
		return quality;
	}

	public void setQuality(Integer quality) {
		this.quality = quality;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getContactWay() {
		return contactWay;
	}

	public void setContactWay(String contactWay) {
		this.contactWay = contactWay;
	}

	public Integer getTradeWay() {
		return tradeWay;
	}

	public void setTradeWay(Integer tradeWay) {
		this.tradeWay = tradeWay;
	}

	public String getIssueTime() {
		return issueTime;
	}

	public void setIssueTime(String issueTime) {
		this.issueTime = issueTime;
	}

	public String getEditTime() {
		return editTime;
	}

	public void setEditTime(String editTime) {
		this.editTime = editTime;
	}

	public Integer getCommendNum() {
		return commendNum;
	}

	public void setCommendNum(Integer commendNum) {
		this.commendNum = commendNum;
	}

	public Integer getReportStatus() {
		return reportStatus;
	}

	public void setReportStatus(Integer reportStatus) {
		this.reportStatus = reportStatus;
	}

	public Integer getReportNum() {
		return reportNum;
	}

	public void setReportNum(Integer reportNum) {
		this.reportNum = reportNum;
	}

	public Integer getMessagesNum() {
		return messagesNum;
	}

	public void setMessagesNum(Integer messagesNum) {
		this.messagesNum = messagesNum;
	}

	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}

	public Integer getShieldStatus() {
		return shieldStatus;
	}

	public void setShieldStatus(Integer shieldStatus) {
		this.shieldStatus = shieldStatus;
	}

	public Integer getTradeStatus() {
		return tradeStatus;
	}

	public void setTradeStatus(Integer tradeStatus) {
		this.tradeStatus = tradeStatus;
	}

	public String getOneCategoryName() {
		return oneCategoryName;
	}

	public void setOneCategoryName(String oneCategoryName) {
		this.oneCategoryName = oneCategoryName;
	}

	public String getTwoCategoryName() {
		return twoCategoryName;
	}

	public void setTwoCategoryName(String twoCategoryName) {
		this.twoCategoryName = twoCategoryName;
	}

	public String getThreeCategoryName() {
		return threeCategoryName;
	}

	public void setThreeCategoryName(String threeCategoryName) {
		this.threeCategoryName = threeCategoryName;
	}

	public Integer getOneCategoryId() {
		return oneCategoryId;
	}

	public void setOneCategoryId(Integer oneCategoryId) {
		this.oneCategoryId = oneCategoryId;
	}

	public Integer getTwoCategoryId() {
		return twoCategoryId;
	}

	public void setTwoCategoryId(Integer twoCategoryId) {
		this.twoCategoryId = twoCategoryId;
	}

	public Integer getThreeCategoryId() {
		return threeCategoryId;
	}

	public void setThreeCategoryId(Integer threeCategoryId) {
		this.threeCategoryId = threeCategoryId;
	}

	public Integer getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(Integer provinceId) {
		this.provinceId = provinceId;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	public Integer getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Integer schoolId) {
		this.schoolId = schoolId;
	}

	@Override
	public String toString() {
		return "CommodityInfo [id=" + id + ", name=" + name + ", detail=" + detail + ", headimgUrl=" + headimgUrl
				+ ", imgUrlList=" + imgUrlList + ", oriPrice=" + oriPrice + ", transferPrice=" + transferPrice
				+ ", quality=" + quality + ", location=" + location + ", contactWay=" + contactWay + ", tradeWay="
				+ tradeWay + ", issueTime=" + issueTime + ", editTime=" + editTime + ", commendNum=" + commendNum
				+ ", reportStatus=" + reportStatus + ", reportNum=" + reportNum + ", messagesNum=" + messagesNum
				+ ", memberId=" + memberId + ", shieldStatus=" + shieldStatus + ", tradeStatus=" + tradeStatus
				+ ", oneCategoryName=" + oneCategoryName + ", twoCategoryName=" + twoCategoryName
				+ ", threeCategoryName=" + threeCategoryName + ", oneCategoryId=" + oneCategoryId + ", twoCategoryId="
				+ twoCategoryId + ", threeCategoryId=" + threeCategoryId + ", provinceId=" + provinceId + ", cityId="
				+ cityId + ", schoolId=" + schoolId + "]";
	}
	
}
